package com.situ.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_menu")
@Schema(description = "菜单表")
@EqualsAndHashCode
public class TMenu {
    @TableId
    @Schema(description = "菜单id")
    private Integer id;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "菜单链接")
    private String linkUrl;

    @Schema(description = "菜单路径")
    private String path;

    @Schema(description = "菜单优先级")
    private Integer priority;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "菜单描述")
    private String description;

    @Schema(description = "父级菜单id")
    private Integer pid;

    @Schema(description = "菜单层级")
    private Integer level;
}